﻿// EditorAPI.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include "EditorAPI.h"

Kernel *pKernel = NULL;

EDITOR_API bool InitKernel()
{
	pKernel = new Kernel;
	pKernel = &Kernel::spec();
	Kernel::spec().Create();

	return true;
}

EDITOR_API bool ShutDownKernel()
{
	pKernel->Destroy();
	return true;
}

// This is an example of an exported function.
EDITOR_API int writeLog( const char* message )
{
	static int i;
	i++;
	
	cwLogger::writeINFO(std::string(message) + "- медвед :)");
	return i;
}

// This is the constructor of a class that has been exported.
// see EditorAPI.h for the class definition
CEditorAPI::CEditorAPI()
{
	return;
}
